.class final Lcom/google/android/exoplayer/t;
.super Ljava/lang/Object;
.source "StandaloneMediaClock.java"

# interfaces
.implements Lcom/google/android/exoplayer/k;


# instance fields
.field private a:Z

.field private b:J

.field private c:J

.field private d:D


# direct methods
.method constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/high16 v0, 0x3ff0000000000000L    # 1.0

    .line 2
    iput-wide v0, p0, Lcom/google/android/exoplayer/t;->d:D

    return-void
.end method

.method private d()V
    .locals 8

    .line 1
    iget-boolean v0, p0, Lcom/google/android/exoplayer/t;->a:Z

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    mul-long v0, v0, v2

    .line 3
    iget-wide v2, p0, Lcom/google/android/exoplayer/t;->b:J

    iget-wide v4, p0, Lcom/google/android/exoplayer/t;->c:J

    sub-long v4, v0, v4

    long-to-double v4, v4

    iget-wide v6, p0, Lcom/google/android/exoplayer/t;->d:D

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v4, v4, v6

    double-to-long v4, v4

    add-long/2addr v2, v4

    iput-wide v2, p0, Lcom/google/android/exoplayer/t;->b:J

    .line 4
    iput-wide v0, p0, Lcom/google/android/exoplayer/t;->c:J

    return-void
.end method


# virtual methods
.method public a()J
    .locals 2

    .line 3
    invoke-direct {p0}, Lcom/google/android/exoplayer/t;->d()V

    .line 4
    iget-wide v0, p0, Lcom/google/android/exoplayer/t;->b:J

    return-wide v0
.end method

.method public a(F)V
    .locals 2

    .line 5
    invoke-direct {p0}, Lcom/google/android/exoplayer/t;->d()V

    float-to-double v0, p1

    .line 6
    iput-wide v0, p0, Lcom/google/android/exoplayer/t;->d:D

    return-void
.end method

.method public a(J)V
    .locals 4

    .line 1
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    mul-long v0, v0, v2

    iput-wide v0, p0, Lcom/google/android/exoplayer/t;->c:J

    .line 2
    iput-wide p1, p0, Lcom/google/android/exoplayer/t;->b:J

    return-void
.end method

.method public b()V
    .locals 4

    .line 1
    iget-boolean v0, p0, Lcom/google/android/exoplayer/t;->a:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/google/android/exoplayer/t;->a:Z

    .line 3
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    mul-long v0, v0, v2

    iput-wide v0, p0, Lcom/google/android/exoplayer/t;->c:J

    :cond_0
    return-void
.end method

.method public c()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/google/android/exoplayer/t;->a:Z

    if-eqz v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/google/android/exoplayer/t;->d()V

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/google/android/exoplayer/t;->a:Z

    :cond_0
    return-void
.end method
